<%--
  Created by IntelliJ IDEA.
  User: 本间芽衣子
  Date: 2021/4/19
  Time: 9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登入注册页面</title>
    <LINK rel="Bookmark" href="${pageContext.request.contextPath}/static/admin/img/favicon.ico">
    <LINK rel="Shortcut Icon" href="${pageContext.request.contextPath}/static/admin/img/favicon.ico"/>
    <script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
    <link rel="stylesheet"href="css/me.css">
    <style>

    </style>
</head>
<body>
<div class="dowebok" id="dowebok">
    <div class="form-container sign-in-container">
        <form action="userAll" method="post">
            <h1>登录</h1>

            <span>或使用您的帐号</span>
            <input type="username" placeholder="用户名"name="username">
            <input type="password" placeholder="密码"name="password">
            <button type="submit">登录</button>
        </form>
    </div>
    <div class="overlay-container">
        <div class="overlay">
            <div class="overlay-panel overlay-left">
                <h1>已有帐号？</h1>
                <p>请使用您的帐号进行登录</p>
                <button class="ghost" id="signIn">登录</button>
            </div>
        </div>
    </div>
</div>

<script>
    var signUpButton = document.getElementById('signUp')
    var signInButton = document.getElementById('signIn')
    var container = document.getElementById('dowebok')

    signUpButton.addEventListener('click', function() {
        container.classList.add('right-panel-active')
    })

    signInButton.addEventListener('click', function() {
        container.classList.remove('right-panel-active')
    })
</script>
</body>
</html>

